{% extends 'mobile/base.html' %}
{% load static %}


{% block mainbody %}
    <!--头部-->
    <header>
        <div class="header">
            <h1>切换店铺</h1>
            <a href="{% url 'mobile_index' %}" class="return"><i></i></a>
        </div>
    </header>

    <!--内容区-->
    <article class="main-container">

        <!--产品-->
        <div class="list-content cartlist order-Pro">
            <ul>
                {% for item in shoplist %}
                    <li class="line select">
                        <a href="{% url 'mobile_select_shop' %}?sid={{ item.id }}">
                            <div class="pro-img"><img src="{% static 'uploads/shop' %}/{{ item.cover_pic }}" alt=""></div>
                            <div class="pro-con"><h3>{{ item.name }}</h3>
                                <p>电话：{{ item.phone }}</p>
                                <p>{{ item.address }}</p></div>
                        </a>
                    </li>
                {% endfor %}
            </ul>
        </div>

    </article>
{% endblock %}
